/**
 * configure RequireJS
 * prefer named modules to long paths, especially for version mgt
 * or 3rd party libraries
 */
require.config({
    waitSeconds: 200,
    urlArgs:Date(),
    paths: {
        'jquery':'libs/jquery-1.11.1.min',
        'jquery-ui':'libs/jquery-ui-1.11.1.min',
        'dotdotdot':'libs/jquery.dotdotdot',
        'bootstrap':'libs/bootstrap/bootstrap',
        'gallery':'libs/highslide-full'
    },
    shim: {
        'jquery' : {
            deps: [],
            exports: 'jquery'
        },
        'jquery-ui':{
            deps: ['jquery']
        },
        'dotdotdot':{
            deps: ['jquery']
        },
        'bootstrap':{
            deps: ['jquery']
        }
    }

});

define(
    ['jquery', 'jquery-ui','bootstrap'],
    function( $ ){
         require(['router', 'controllers/baseCtrl'],function(router,Base){
            $(document).ready(function(){
               router.start();
               Base.start();
            });
         });
    }
);